package org.example.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "sharding")
@Data
//@EnableConfigurationProperties(RouterConfig.class)
public class RouterConfig {

    private Map<String,String> routes;

    public Map<String, String> getRouteMap() {
        return routes;
    }

    public void setRouteMap(Map<String, String> routeMap) {
        this.routes = routeMap;
    }
}
